﻿
using System;
using System.Threading;

namespace Demo.Test.StackQueue
{
    /// <summary>
    /// 队列 先进先出
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface IQueue<T> where T : class
    {

        /// <summary>
        /// 出栈
        /// </summary>
        /// <param name="node"></param>
        Node<T> Out();

        /// <summary>
        /// 入栈
        /// </summary>
        /// <param name="node"></param>
        void In(Node<T> node);

    }

}
